package cn.yunhe.beans;

import java.util.Date;

/**
 * @author herbert
 * @date 2021/2/4
 * 订单实体类
 */
public class Order {

    /**
     *订单id
     */
   private int orderId;
    /**
     *订单时间
     */
   private Date orderTime;
    /**
     *订单详情
     */
   private String orderDetail;
    /**
     *对应的产品id
     */
   private int itemId;
    /**
     *送货地址
     */
   private String address;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(String orderDetail) {
        this.orderDetail = orderDetail;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderTime=" + orderTime +
                ", orderDetail='" + orderDetail + '\'' +
                ", itemId=" + itemId +
                ", address='" + address + '\'' +
                '}';
    }
}
